var $ = getApp(), methods = require("../methods.js");
Page(Object.assign({}, methods, {
	data: {
		express: '',
		express_no: '',
		datalist: [],
	},
	_onLoad: function (option) {
		var that = this;
		that.setData({ express: that.options.express, express_no: that.options.express_no })
		$.get('order/logistics', { express: that.options.express, express_no: that.options.express_no }, function (res) {
			var datalist = res.datalist
			if (datalist.length < 1) {
				$.showEmpty('暂未查找到物流信息', '/images/empty2.png');
			}
			that.setData({ datalist: datalist })
		});
	},
	onPullDownRefresh: function () {
		this.onLoad();
		wx.stopPullDownRefresh()
	},
}))